package com.weixinli.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.weixinli.beans.UserGood;
import com.weixinli.biz.IUserGoodBiz;
import com.weixinli.dao.IUserGoodDao;

@Scope("prototype")
@Service("iUserGoodBiz")
public class UserGoodBizImpl implements IUserGoodBiz {
	@Resource(name="iUserGoodDao")
	private IUserGoodDao iUserGoodDao;
	
	public void setiUserGoodDao(IUserGoodDao iUserGoodDao) {
		this.iUserGoodDao = iUserGoodDao;
	}

	public int delUserGood(Integer w_uid, Integer area_id) {
		return iUserGoodDao.delUserGood(w_uid, area_id);
	}

	public int getTotalUserGood() {
		return 0;
	}

	public String findUserGood(Integer w_uid, Integer area_id) {
		return iUserGoodDao.findUserGood(w_uid, area_id);
	}

	public List<UserGood> findOnes(Integer w_uid) {
		return null;
	}

	public int addGood(Integer w_uid, String gid, Integer area_id) {
		return iUserGoodDao.addGood(w_uid, gid, area_id);
	}

	public int updateGood(Integer w_uid, String gid, Integer area_id) {
		return iUserGoodDao.updateGood(w_uid, gid, area_id);
	}

}
